<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>demo1</title>
</head>
<body>

    <h1 th:text="${userName}"></h1>

    <input type="text" name="names" th:value="${userName}"/><br>
    <em th:size="${userName}"></em>

    <!--字符串拼接1-->
    <span th:text="'欢迎来到:'+${userName}+'学习!'"></span><br>
    <!--字符串拼接2-->
    <span th:text="|欢迎来:${userName}学习|"></span>

</body>
</html>
